<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>filter</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id = "app">
        <input type="text" @input="handleInput">
        <ul>
            <li v-for="data in dataList">
                {{data}}
            </li>
        </ul>
    </div>

    <script>
        var vm = new Vue({
            el: "#app",
            data:{
                dataList:["aab","aac","bbc","ccd","ddd"],
                newList:["aab","aac","bbc","ccd","ddd"]
            },
            methods:{
                    handleInput(evt){
                        console.log(evt)
                    this.dataList=this.newList.filter(item=>item.includes(evt.target.value))
                }
            }

        })
    </script>
</body>
</html>